package nimble.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class TestController {

    @RequestMapping("/hello")
    public String hello()
    {
        return "Hello";
    }

    @RequestMapping("/test")
    public String test(Model model)
    {
        model.addAttribute("name","Max Woods");
        return "test";
    }
}